package com.huawei.appgallery.forum.posts.buoy.action;

import android.app.Activity;
import com.huawei.appgallery.assistantdock.base.externalaction.openviewaction.IOpenViewAction;
import com.huawei.secure.android.common.intent.SafeIntent;
import o.bqx;
import o.bwx;
import o.dys.a;
import o.fho;
import o.fjq;

public class OpenDeletePostAction extends IOpenViewAction {
    public static final String ACTION_OPEN_FORUM_DELETE_POST = "com.huawei.gamebox.ACTION_OPEN_FORUM_DELETE_POST";
    public static final String BUNDLE_DOMAINID = "DomainId";
    public static final String BUNDLE_POSTID = "PostId";
    private static final String TAG = "OpenDeletePostAction";
    private static fjq<Boolean> onCompleteListener;

    public OpenDeletePostAction(a aVar, SafeIntent safeIntent) {
        super(aVar, safeIntent);
    }

    public void onAction() {
        bqx.ˏ(TAG, "onAction");
        if (this.callback instanceof Activity) {
            ((bwx) fho.ˏ().ˋ("Operation").ॱ(bwx.class)).ॱ((Activity) this.callback, this.intent.getLongExtra("PostId", -1), this.intent.getStringExtra("DomainId")).ˏ(onCompleteListener);
        }
    }

    public static void setOnCompleteListener(fjq<Boolean> o_fjq_java_lang_Boolean) {
        onCompleteListener = o_fjq_java_lang_Boolean;
    }
}
